# coding: utf-8
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QVBoxLayout
from qfluentwidgets import MaskDialogBase, IndeterminateProgressRing


class LoadingDialog(MaskDialogBase):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.verticalLayout = QVBoxLayout(self.widget)
        self.progress_ring = IndeterminateProgressRing(self)
        self.progress_ring.setFixedSize(80, 80)

        self.verticalLayout.setAlignment(Qt.AlignmentFlag.AlignCenter)
        self.verticalLayout.addWidget(self.progress_ring)
